/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.hamacekj.dotaznikserver;

import java.util.Vector;
import javax.swing.table.DefaultTableModel;

/**
 * {@link javax.swing.table.DefaultTableModel DefaultTableModel}, do kterého nelze
 * zapisovat.
 * @author Jan Hamáček
 */
public class ReadOnlyTableModel extends DefaultTableModel{

    public ReadOnlyTableModel() {
    }

    public ReadOnlyTableModel(Object[] columnNames, int rowCount) {
        super(columnNames, rowCount);
    }

    public ReadOnlyTableModel(Object[][] data, Object[] columnNames) {
        super(data, columnNames);
    }

    public ReadOnlyTableModel(Vector data, Vector columnNames) {
        super(data, columnNames);
    }

    public ReadOnlyTableModel(Vector columnNames, int rowCount) {
        super(columnNames, rowCount);
    }

    public ReadOnlyTableModel(int rowCount, int columnCount) {
        super(rowCount, columnCount);
    }

    @Override
    public boolean isCellEditable(int row, int column) {
        return false;
    }
    
    
    
}
